home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000170_icon-group-sender _Mon Aug 31 09:30:05 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id JAA01077
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 31 Aug 1998 09:30:03 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA21426; Mon, 31 Aug 1998 09:29:37 -0700
Date: Sun, 30 Aug 1998 14:54:38 -0300 (ADT)
From: Larry Bezeau <bezeau@unb.ca>
X-Sender: bezeau@sol.sun.csd.unb.ca
Reply-To: Larry Bezeau <bezeau@unb.ca>
To: icon-group@optima.CS.Arizona.EDU
Subject: Integers in Posix-compliant icon
Message-Id: <Pine.SOL.3.96.980830144657.1473A-100000@sol.sun.csd.unb.ca>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 682
In writing a procedure to change a date in most any form
to a standard form, I encountered some strange behavior by
Posix compliant icon on a Unix platform. This is illustrated by
the following short program.
cat integers.icn
procedure main(A)
write()
every (arg := !A) do {
if integer(arg) then write(" ",arg," is the integer ",integer(arg),".")
else write(" ",arg," is not an integer.")
write()
}
end
./integers 3rd 23rd
3rd is not an integer.
23rd is the integer 13.
In my opinion, neither of these is an integer. Is
this a bug or am I missing something?
Larry Bezeau@UNB.Ca